package com.jf.cloud.product.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;

public class SkuExcelVO {
    /**
     * excel 信息
     */
    public static final String EXCEL_NAME = "商品库存信息";
    public static final String SHEET_NAME = "商品库存";
    /**
     * 哪一行开始导出
     */
    public static final int MERGE_ROW_INDEX = 2;
    /**
     * 需要合并的列数组
     */
    public static final int[] MERGE_COLUMN_INDEX = {0,1,2,3,4,5,6,7,8,9,10};

    @ExcelProperty(value = {"商品库存信息", "商品名称"}, index = 0)
    private String spuName;

    @ExcelProperty(value = {"商品库存信息", "商品编码"}, index = 1)
    private String partyCode;

    @ExcelProperty(value = {"商品库存信息", "商品规格"}, index = 2)
    private String skuName;

    @ExcelProperty(value = {"商品库存信息", "库存"}, index = 3)
    private Integer stock;

    @ExcelProperty(value = {"商品库存信息", "销售价（元）"}, index = 4)
    private String priceFee;


    @ExcelIgnore
    private Long spuId;

    @ExcelIgnore
    private Long skuId;

    public String getPartyCode() {
        return partyCode;
    }

    public void setPartyCode(String partyCode) {
        this.partyCode = partyCode;
    }

    public String getSpuName() {
        return spuName;
    }

    public void setSpuName(String spuName) {
        this.spuName = spuName;
    }

    public String getSkuName() {
        return skuName;
    }

    public void setSkuName(String skuName) {
        this.skuName = skuName;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public String getPriceFee() {
        return priceFee;
    }

    public void setPriceFee(String priceFee) {
        this.priceFee = priceFee;
    }

    public Long getSpuId() {
        return spuId;
    }

    public void setSpuId(Long spuId) {
        this.spuId = spuId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    @Override
    public String toString() {
        return "SkuExcelVO{" +
                "partyCode='" + partyCode + '\'' +
                ", spuName='" + spuName + '\'' +
                ", skuName='" + skuName + '\'' +
                ", stock=" + stock +
                ", priceFee=" + priceFee +
                ", spuId=" + spuId +
                ", skuId=" + skuId +
                '}';
    }
}
